#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.web.action;

import ${package}.biz.form.UserForm;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.Map;

/**
 * Created by well on 15/10/15.
 */
@Controller
public class LoginAction {

    @RequestMapping(value = "login.htm", method = RequestMethod.GET)
    public String login(HttpServletRequest request, ModelMap modelMap, UserForm userForm,
                        BindingResult result, Map<String, Object> model) {
        return "login.vm";

    }

    @RequestMapping(value = "login.htm", method = RequestMethod.POST)
    public String doLogin(HttpServletRequest request, ModelMap modelMap,@Valid UserForm userForm,
                        BindingResult result, Map<String, Object> model) {
        return "index.vm";

    }
}
